SWMacros.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
#ifndef _SWMACROS_H
00007
#define _SWMACROS_H
00008
00009
00010 #define SWSUCCEESS(Status) ((int)(Status) > 0)
00011 #define SWFAILED(Status) ((int)(Status) <= 0)
00012
00013
#ifndef _DEBUG
00014 #define MESSAGE_DBG(ErrorString, ErrorCaption) ((void)0)
00015
#else
00016
00017
#define MESSAGE_DBG(ErrorString, ErrorCaption) \
00018
{ \
00019
::MessageBox(NULL, ErrorString, ErrorCaption, MB_OK); \
00020
}
00021
#endif
00022
00023 enum SWRESULT
00024 {
00025
SW_FAIL = 0,
00026
SW_OK = 1,
00027
SW_CANCEL = 2,
00028
SW_NOTIMPL = -1,
00029
SW_INVALIDARG = -2,
00030
SW_OUTOFBOUNDS = -2,
00031
SW_MEMORYERR = -3,
00032
SW_INCORRECTSTATE = -4,
00033
SW_PLUGINERROR = -5,
00034
SW_NOSERVER = -6,
00035
SW_NOTINITIALIZED = -7,
00036
SW_INCOMPLETEDATA = -8
00037 };
00038
00039
#endif // _SWMACROS_H